--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit d579a201b38eb6bb867e7cc78f2299320cef1dc0
Parents : 3e09d7b
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-01T22:45:43-06:00
refactor(meshchat_wrapper): improve code readability by formatting argument list and adding spacing
Changes
1 files changed, 10 insertions(+), 7 deletions(-)
Diff
diff --git a/android/app/src/main/python/meshchat_wrapper.py b/android/app/src/main/python/meshchat_wrapper.py
index d625c6a7..de627f78 100644
--- a/android/app/src/main/python/meshchat_wrapper.py
+++ b/android/app/src/main/python/meshchat_wrapper.py
@@ -1,20 +1,23 @@
import sys
+
def start_server(port=8000):
try:
from meshchatx.meshchat import main
-
+
sys.argv = [
- 'meshchat',
- '--headless',
- '--host', '127.0.0.1',
- '--port', str(port)
+ "meshchat",
+ "--headless",
+ "--host",
+ "127.0.0.1",
+ "--port",
+ str(port),
]
-
+
main()
except Exception as e:
print(f"Error starting MeshChatX server: {e}")
import traceback
+
traceback.print_exc()
raise
-
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────